#include <stdio.h>
#include <stdlib.h>
#include <time.h>

#define	NO			1000000
#define	MAX_ART		1000000000
#define	MAX_PRICE	100

typedef long long int lld;

int main()
{
	unsigned int i,s,md,mds,j,b;
	long long r;
	srand(time(NULL));
	printf("%d\n",NO);
	for(i=0;i<NO;i++)
	{
		md=(rand()*rand())%MAX_ART;
		mds=(rand())%MAX_PRICE;
		printf("%u %u\n",md,mds);
	}
	return 0;
}
